@charset "UTF-8";
@import './variables.scss';
@import './element-ui.scss';
@import './common.scss';
@import './standard.scss';

html {
  height: 100%;
  box-sizing: border-box;
}

.fail {
  color: $fail-color;
  line-height: 1;
}


// 重置所有滚动条
*, div {
  &::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  &::-webkit-scrollbar-track-piece {
    background-color: #f8f8f9;
    border-radius: 4px;
  }

  &::-webkit-scrollbar-thumb {
    background-color: #dcdee2;
    border-radius: 4px;
  }

  &::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
  }
}

.svg-special {
  font-size: 12px !important;
  cursor: pointer;
}

// 消息提示框自定样式
.elMessage-index {
  z-index: 6666 !important;
}

/*element表格表头复选框添加全选文字 需要给*/
// el-table添加该类名 .table-select-all
// 需要给定90的宽 <el-table-column label="全选" width="90"> </el-table-column>
/*.table-select-all {
  .el-table__header {
    .el-table-column--selection {
      .cell {
        .el-checkbox {
          &:after {
            color: #1f1f1f;
            content: "\5168\9009";
            font-size: 12px;
            margin-left: 4px;
            font-weight: 400;
          }
        }
      }
    }
  }
}*/

// elementUi 输入框 输入长度限制 样式
// 输入框
.limit-count-t {
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
}

// 适配文本域
.limit-count-b {
  right: 5px;
  bottom: 0;
}

.limit-count {
  position: absolute;
  padding: 0 5px;
  font-size: 12px;
  text-align: center;
  color: var(--el-color-info);
  cursor: pointer;
}

.no-transition {
  transition: all 0s;
}

// 创意组件新建组件的样式
.component-form {
  display: flex;
  flex-direction: column;
  padding: 20px;

  .el-form-item--small .el-form-item__label {
    margin-right: 20px;
    text-align: left;
  }

  > .el-form-item {
    margin-bottom: 25px;

    .el-form-item__content {
      & > .el-input {
        width: 440px;

        .el-input-group__append {
          width: 100px;

          .el-input__inner::placeholder {
            color: var(--el-text-color-regular);
          }
        }
      }
    }

    &:nth-last-of-type(-n+2) {
      order: -1;
    }
  }
}

// 抽屉组件里的描述关键字 和特定描述排版
.drawer {
  background: #fff;
  padding: 5px 0;
  margin-bottom: 10px;
  border-radius: 2px;
  box-shadow: 0px 0px 6px 0px rgba(28, 39, 80, 0.16);

  .basic-info {
    padding: 0 20px;
  }
}

.desc-keyword {
  padding: 0 20px;
  height: 40px;
  line-height: 40px;
  border-bottom: 1px solid $border-color-base;
  font-size: 14px;
  font-weight: 700;
  color: #1f1f1f;
}

.details-info {
  //display: flex;
  //flex-wrap: wrap;
  padding-left: 20px;
}

.details-info-txt {
  display: flex;
  flex: 50%;
  margin: 7px 0;

  a {
    word-break: break-all;
    padding-right: 20px;

    &:hover {
      color: $color-primary !important;
    }
  }

  span {
    &:nth-of-type(1) {
      white-space: nowrap;
    }

    &:nth-of-type(2) {
      word-break: break-all;
      padding-right: 20px;
    }
  }
}

// 首页图表上面的选择器样式
.data-trend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  height: 40px;
  border-bottom: 1px solid #dcdfe6;

  .data-trend-s {
    display: flex;
  }
}

// 自定义指令创建的文字提示元素样式 超出省略和文字说明样式
/*.tooltip {
  background: rgba(0, 0, 0, .6);
  color: #fff;
  border-radius: 2px;
  padding: 10px;
  max-width: 380px;
  z-index: 5002;
  display: inline-block;
  font-size: 12px;
}*/
// 元素提示说明
.tooltip {
  border-radius: 2px;
  padding: 10px;
  max-width: 380px;
  z-index: 7777;
  display: inline-block;
  font-size: 12px;
  color: $h2-text-color;
  background: $color-white;
  box-shadow: 0px 3px 6px 0px rgba(28, 39, 80, 0.16);
}

.tooltip-arrow {
  bottom: -9px;
  width: 0;
  height: 0;
  border-width: 5px;
  border-style: solid;
  border-color: $color-white transparent transparent transparent;
}

.teleport-date {
  display: flex;
  justify-content: flex-end;
  align-items: center;

  .el-date-editor {
    //width: 280px;
  }

  > div:nth-of-type(1) {
    margin-right: 20px;
  }

  .teleport-btn {
    padding: 8px;

    .teleport-icon {
      margin-right: 3px;
    }
  }
}

// 修改进度条颜色
#nprogress .bar {
  background: $color-primary !important; //自定义颜色
}

// 自定义指标或筛选的样式
.custom-popover.el-popover {
  max-height: 310px;
  overflow-y: auto;
  padding: 0;
  //overflow-y: overlay;

  &::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
}


.custom-list {
  font-size: 12px;
  color: #616161;
  cursor: pointer;
  padding: 10px;

  .custom-list-txt {
    display: inline-block;
    width: 75px;
  }

  &:hover {
    background: $select-hover-color;
  }
}

.custom-active {
  position: relative;
  color: $color-primary;

  .svg-icon {
    position: absolute;
    right: 25px;
  }
}


.screening-select {
  width: 180px;
  margin-right: 20px;

  .el-input__inner:focus {
    border-color: $color-primary;
  }

  .el-input__prefix {
    margin: 0 5px;
  }

  .el-input__inner {
    padding-left: 65px !important;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.screening-btn-txt {
  color: $color-primary;
}

.screening-hint {
  font-size: 12px;
  color: #8a8a8a;
  width: 52px;
}

.screening-txt {
  font-size: 14px;
  color: #616161;
}

// 批量工具按钮样式
.tools-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  color: #8a8a8a;
  border: 1px solid $border-color-base;
  border-radius: $border-radius-small;
  margin: 0 10px;

  &:nth-of-type(1) {
    //margin: 0 10px 0 20px;
  }

  &:nth-of-type(2) {
    //margin-right: 10px;
  }

  &:hover,
  &:focus {
    background: rgba(84, 115, 232, 0.06);
    border-color: $color-primary;
    color: $color-primary;
  }
}

.tools-btn-effect {
  &:hover,
  &:focus {
    background: rgba(84, 115, 232, 0.06);
    border-color: $color-primary;
    color: $color-primary;
  }
}

//批量操作的样式
.choose {
  color: #616161;

  &:focus, &:hover {
    //border-color: $color-primary;
    color: $color-primary;
    background-color: transparent;
  }
}

.no-choose {
  color: #ababab;

  &:hover {
    color: #ababab;
  }
}

.batch-operation-change {
  margin-right: 10px;
  font-size: 14px;

  .batch-operation-change-c {
    display: flex;
    align-items: center;

    .svg-icon {
      margin-right: 5px;
    }
  }
}

.batch-operation {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #ababab;
  min-height: 60px;

  > div {
    display: flex;
    align-items: center;

    &:not(:last-of-type)::after {
      content: '';
      margin: 0 20px;
      width: 1px;
      height: 24px;
      display: inline-block;
      border-right: 1px solid $border-color-base;
    }
  }
}

// 批量修改
.batch-config {
  display: flex;
  flex-direction: column;

  .batch-select {
    margin-left: 20px;

    .el-input__inner {
      width: 156px;
    }
  }

  .batch-config-t {

    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .batch-config-t-l {
    display: flex;
    align-items: center;
  }

  .batch-config-p {
    font-size: 14px;
    color: #616161;
  }

  .el-radio-group {
    margin: 0 10px;
  }

  .el-icon-warning-outline {
    cursor: pointer;
  }
}

// 省略号
.ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.multi-ellipsis--l2 {
  display: -webkit-box;
  overflow: hidden;
  word-break: break-word;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: break-spaces;
}

// 批量操作提示样式
.batch-operation-message {
  background: #FFFFFF;
  box-shadow: 0 0 6px 0 rgb(28 39 80 / 16%);
  border: none;
  padding: 15px 0;

  .el-icon-warning {
    display: none;
  }

  .el-icon-close {
    position: absolute;
    top: 20px;
    right: 10px;
  }

  .el-message__content {
    color: #666666;
    max-width: 560px;
    padding-right: 0 !important;
  }

  .title {
    color: #1f1f1f;
    margin-bottom: 6px;
    font-weight: 400;
    padding: 0 15px;
  }

  .content {
    max-height: 240px;
    overflow: auto;
    padding: 0 15px;

    .content-item {
      padding: 0 20px;
      position: relative;
      margin-top: 6px;
      line-height: 20px;
      word-break: break-all;

      &:before {
        position: absolute;
        top: 1px;
        left: 0;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 14px;
        height: 14px;
        border: 1px solid #ff9f24;
        border-radius: 100%;
        font-size: 12px;
        font-weight: 700;
        color: #ff9f24;
        content: "!";
      }
    }
  }
}
